<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class TposInfo extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'tpos_infos';
    protected $fillable = [
        'user_id',
        'openid',
        'nickName',
        'avatarUrl',
        'gender',
        'unionid',
        'type',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

}
